<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>员工数据展示</title>
</head>
<body>
<!-- 不变保留，变化插入 -->

<table border="1px">
	<thead>
		<tr>
			<th>id</th>
			<th>name</th>
			<th>email</th>
			<th>sex</th>
			<th>dep</th>
			<th>del</th>
			<th>edit</th>
		</tr>
	</thead>
	
	<tbody>
		<!-- 不变保留，变化插入 -->
		<c:forEach items="${slist}" var="stuff">
		<tr>
			<td>${stuff.id }</td>
			<td>${stuff.name }</td>
			<td>${stuff.email }</td>
			<td>${stuff.sex }</td>
			<td>${stuff.dep }</td>
			<td><a href="del?id=${stuff.id}">删除</a></td>
			<td><a hef="">编辑</a>
		</tr>
		</c:forEach>
	</tbody>


</table>

<a href="insert">插入</a>



</body>
</html>